Skip to content

A virtual list with only a max height sizes to its rows (#434) - #454

Merged
samitbasu merged 6 commits into
mainfrom
vlist-size-434
Nov 20, 2026
Merged

samitbasu merged 6 commits into
mainfrom
vlist-size-434

Conversation

@samitbasu

Copy link
Copy Markdown
Owner

Closes #434.

A virtual list given only a max height now sizes to its rows, up to the max. The command list's hand-sizing (list_height) is removed in favor of max_h_px.

Test: a_list_with_only_a_max_height_is_as_tall_as_its_rows_up_to_the_max (3, 10 and 1000 rows); the palette's existing height tests pass unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AJYxo4YJZUXcPJ1bHdAHKy

samitbasu and others added 6 commits November 19, 2026 22:15
…he max (#434)

A scroll container is a leaf of its layout tree, so with no height of its
own it collapsed to nothing. The virtual list knows the rows' total, so it
now sizes its container to the content (inside the content's padding) when
the classes gave no height; a max height still caps it. The command list's
hand-computed height is gone: it gives the list a max height.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AJYxo4YJZUXcPJ1bHdAHKy
…ight

Its parents measure it by the height it was given, not by the max it is
clamped to later: a dialog holding a long list measured as tall as the list.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AJYxo4YJZUXcPJ1bHdAHKy
@samitbasu

Copy link
Copy Markdown
Owner Author

Approved by the user on its tests (2026-11-20); fit_height never exceeds a definite max. GitHub's required checks pass on the branch merged with current main. Merging.

@samitbasu
samitbasu merged commit 83467b5 into main Nov 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vlist: keys_from doc example collapses to zero height

1 participant